package cn.hill4j.tool.spring.std.advice;

import cn.hill4j.tool.spring.ext.feign.wrap.FeignUrlSupplier;
import cn.hill4j.tool.spring.ext.feign.wrap.WrapFeignUtils;
import feign.Target;
import org.springframework.stereotype.Component;

/**
 * ClassName: DymUrlGetter
 * Description: TODO
 *
 * @author hillchen
 * Date: 2023年08月14日
 * @version: 1.0
 */
@Component
public class DymUrlGetter  implements FeignUrlSupplier {
    String url_tmp = "http://localhost:%s";
    @Override
    public String getUrl(Target target) {
        return String.format(url_tmp,WrapFeignUtils.getFeignClientFlag());
    }
}
